set(BIN_NAME filenotify)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_definitions("-DQT_MESSAGELOGCONTEXT")

#查找文件
FILE(GLOB_RECURSE HEADERS *.h )
FILE(GLOB_RECURSE SOURCES *.cpp)

add_library(${BIN_NAME} SHARED ${HEADERS} ${SOURCES})
target_link_libraries(${BIN_NAME} -lpthread)
SET_TARGET_PROPERTIES(${BIN_NAME} PROPERTIES VERSION 1.0.0 SOVERSION 1)

INSTALL(FILES abstractnotifyprocess.h common.h DESTINATION include/udcp/filenotify)
INSTALL(TARGETS ${BIN_NAME} LIBRARY DESTINATION lib/udcp)
